function fn(timer) {
    var i = 0;
    return function (target, descriptor) {
        descriptor.value = function () {
            if (i >= timer) {
                throw new Error("\u62A5\u9519");
            }
            i++;
        };
    };
}
function myFunction() {
    console.log("执行装饰器");
}
for (var i = 0; i < 4; i++) {
    myFunction();
}
